package com.operation.net.mapper;


import com.operation.net.model.CompleteConnectively;
import com.operation.net.model.Connectively;
import com.operation.net.model.Link;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface ConnectivelyMapper {

    List<Connectively> getConnect();

    Connectively hsaSip2Dip(@Param("sip") String sip, @Param("dip") String dip);
    Connectively hasDip2Sip(@Param("dip") String dip,@Param("sip") String sip);


    Link selectIntfaceFlowByIpAndIfIndex(@Param("ifindex") String ifindex,@Param("ip") String ip);


    String selectDifByDIpAndDIfindex(@Param("dip") String dip,@Param("difindex") String difindex);

    Set<Link> selectAllLinksSet(); //

    Set<CompleteConnectively> selectConnectivelySet();

    void addConnect(Connectively connectively);

    int clearConnectively();

    int insertConnectively(@Param("list") List<CompleteConnectively> connectivelies);

    List<CompleteConnectively> selectConnectively();
}
